package com.javaee.demov2.web.dto.book;


import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * description:
 *
 * @author: hevean
 * @date: 2022/04/30
 */

/**
 * 此处为了简化操作，将user实体类的添加和更改的DTO合并成了一个，用于接收前端传递过来的数据
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class BookUpdateDto {

    @ApiModelProperty(value = "图书id")
    Long bookId;

    //此处可以添加数据校验

    @ApiModelProperty(value = "图书作者")
    String author;

    @ApiModelProperty(value = "图书出版社")
    String publisher;
    @ApiModelProperty(value = "出版时间")
    String publicationYear;
    @ApiModelProperty(value = "图书撰写语言")
    String language;
    @ApiModelProperty(value = "馆藏地址")
    String location;
    @ApiModelProperty(value = "图书简介")
    String description;

    Integer status;
}
